﻿#ifndef INICONFIG_H
#define INICONFIG_H
#include<QSettings>

class IniConfig
{
public:
    IniConfig(QString iniFileName="");
    ~IniConfig();
     QSettings  *m_IniFile;

    QVariant value(QString node, QString key, QVariant defaultValue);
     void setValue(QString node, QString key, QVariant value);

     void beginGroup(QString section);
     void setValue(QString key, QString value);
     QVariant value(QString key, QVariant defaultValue);
     void endGroup();

     QMap<QString, QVariant> readNode(QString node);
     QStringList childGroups();
     QStringList childKeys();
     QStringList childKeys(QString node);
     void removeNode(QString node);
     void removeKey(QString node, QString key);
     void removeKey(QString key);
     void removeAllKey();
     void clear();
};

#endif // INICONFIG_H
